package com.factory.db;

import com.impl.db.MySqlConnectionImpl;
import com.mInterface.DB.DBInterface;

public class DBFactory {
	private static DBInterface DBI;
	
	public final static int TYPE_MYSQL = 0;
	
	public static DBInterface getDBConnectionInstance( int type ){
		
		switch (type) {
		case TYPE_MYSQL:
			
			DBI = null;
			DBI = new MySqlConnectionImpl();
			break;

		default:
			break;
		}
		
		return DBI;
	}
}
